#include<stdio.h>
#include<string.h>
#include<ctype.h>
void Sort(char a[]);
int main()
{
	char s[2][20];

	/*printf("Enter the first word:");*/
	fgets(s[0], 20, stdin);
	/*printf("Enter the second word:");*/
	fgets(s[1], 20, stdin);
	Sort(s[0]);
	Sort(s[1]);
	if (strcmp(s[0], s[1]) == 0)
		printf("y");
	else
		printf("n");
	return 0;
}
void Sort(char a[])
{
	int count = strlen(a), i, j,k, x, y,flag;
	char temp;	
	for (i = 0, k = 0; i < count; i++)
	{
		flag = isalpha(a[i]);
		if (flag == 0 )		
			continue;	
		else if (flag == 1)
			a[k] = a[i] + 32;
		else a[k] = a[i];
		k++;
	}
	a[k] = '\0';
	count = strlen(a);
	for (i = count - 1; i > 0; i--)
		for (j = 0; j < i; j++)
		{
			x = (int)a[j];
			y = (int)a[j + 1];
			if (x < y)
			{
				temp = a[j];
				a[j] = a[j + 1];
				a[j + 1] = temp;
			}
		}
	return;
}